import React from "react";
import Home from "./Components/Home";

class App extends React.Component
{
    constructor()
    {
        super()
        this.state = {
           data:["首页","商品","个人"]
        }
    }

    render()
    {
        const { children } = this.props;
        const { btn } = this.props;
        return (
             
            <div>
                <Home datas={this.state.data}>
                    {item => { return <button>{item}</button> }}
                </Home>   
                {children[0]}
                {children[1]}
                {btn}
            </div>
        )
    }
}

export default App;